package com.szrt.day20170419.interfaces.ch02;

public class Carriage implements Daibugongju {
	
	
	
	private int x;
	
	private int y;
	

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	@Override
	public void daibu() {
		System.out.println("江浙总督座马车代步...");
	}
	
	/**
	 * 模拟马上上的铃铛
	 */
	public void lingdang(){
		System.out.println("铃铛想起来..");
	}

}
